package com.ruoyi.SuveryInterface.Imp.mapper;

import com.ruoyi.SuveryInterface.Imp.domain.SysNegative;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-07-12
 */
public interface SysNegativeMapper extends BaseMapper<SysNegative> {

    void insertSysNegative( SysNegative negative);


    @Select("select id,msg,code,order_id as orderId,report_id as reportId,create_time as createTime,create_by as createBy from sys_negative where order_id = #{orderId}")
    List<SysNegative> selectSysNegativeByOrderId(Long orderId);
}
